<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>计算资源管理系统</title>
    <link rel="shortcut icon" href="../img/manage.ico">
    <link rel="stylesheet" href="../layui/css/layui.css">
    <script src="../js/jquery.min.js"></script>
    <script>
        //折叠部分搜索块
        $(function () {
            $("#fold").click(function () {
                $("#param").toggle();
            });
        })
        //显示当天日期
        $(document).ready(function () {
            var time = new Date();
            var day = ("0" + time.getDate()).slice(-2);
            var month = ("0" + (time.getMonth() + 1)).slice(-2);
            var today = time.getFullYear() + "-" + (month) + "-" + (day);
            $('#s_endDate').val(today);
        })
    </script>

</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!--头部区域-->
    <div class="layui-header">
        <div class="layui-logo">计算资源管理系统</div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="/logout">注销</a>
            </li>
        </ul>
    </div>
    <!--左侧区域-->
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">物理机设备</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="/list">轿车机房设备</a>
                        </dd>
                        <dd style="background: #009688">
                            <a href="/headquarters">本部机房设备</a>
                        </dd>
                        <dd>
                            <a href="/center">中心机房设备</a>
                        </dd>
                        <dd>
                            <a href="/guozhen">国祯机房设备</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">虚拟机设备</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="/virtual">虚拟机设备</a>
                        </dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <!--内容主体区域-->
    <div class="layui-body">
        <!--搜索框-->
        <form class="layui-form" id="searchform" action="" style="padding-left:50px;margin-top:20px;">
            <div class="layui-form-item" style="display: inline;">
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_ip" id="s_ip" placeholder="请输入IP地址" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_app" id="s_app" placeholder="请输入应用系统"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_admin" id="s_admin" placeholder="请输入责任人"
                               class="layui-input">
                    </div>
                </div>
                <span id="param" hidden>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_cabinet" id="s_cabinet" placeholder="请输入机柜"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_types" id="s_types" placeholder="请输入设备类型"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_stat" id="s_stat" placeholder="请输入设备状态"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_systems" id="s_systems" placeholder="请输入操作系统"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_apptype" id="s_apptype" placeholder="请输入应用类型"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_datas" id="s_datas" placeholder="请输入数据库"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_numbers" id="s_numbers" placeholder="请输入资产编号"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_brand" id="s_brand" placeholder="请输入品牌型号"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_sn" id="s_sn" placeholder="请输入序列号"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_service" id="s_service" placeholder="请输入服务在保"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_startDate" id="s_startDate" placeholder="请输入起始日期"
                               class="layui-input" value="2000-01-01" readonly>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_endDate" id="s_endDate" placeholder="请输入结束日期"
                               class="layui-input" readonly>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_cpu" id="s_cpu" placeholder="请输入CPU规格"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_amount" id="s_amount" placeholder="请输入CPU数量"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_core" id="s_core" placeholder="请输入CPU总核数"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_ram" id="s_ram" placeholder="请输入内存大小"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_disk" id="s_disk" placeholder="请输入硬盘规格" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_capacity" id="s_capacity" placeholder="请输入硬盘容量"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_used" id="s_used" placeholder="请输入已用槽数"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_remain" id="s_remain" placeholder="请输入剩余槽数"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="s_department" id="s_department" placeholder="请输入资产归属单位"
                               class="layui-input">
                    </div>
                </div>
                </span>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <div class="layui-btn" data-type="reload" lay-filter="rechar_btn" id="search_btn">搜索</div>
                        <div class="layui-btn" lay-filter="rechar_btn" id="fold">高级搜索</div>
                    </div>
                </div>
            </div>
        </form>
        <!--数据表-->
        <table id="tb-car" lay-filter="tb-car"></table>
    </div>
    <!--编辑表单-->
    <div class="layui-row" id="editForm" style="display: none;padding-left: 50px;">
        <div class="layui-col-md10">
            <form class="layui-form layui-form-pane" id="editUser" style="margin-top: 20px;"
                  enctype="multipart/form-data">
                <div class="layui-form-item" style="display: none">
                    <label class="layui-form-label">id</label>
                    <div class="layui-input-block">
                        <input type="text" name="edit_id" id="edit_id" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">IP地址</label>
                    <div class="layui-input-inline">
                        <input type="text" name="edit_ip" id="edit_ip" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">应用系统</label>
                    <div class="layui-input-inline">
                        <input type="text" name="edit_app" id="edit_app" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">责任人</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_admin" name="edit_admin" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">机柜</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_cabinet" name="edit_cabinet" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">机架位置</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_positions" name="edit_positions" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">设备类型</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_types" name="edit_types" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">设备状态</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_stat" name="edit_stat" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">操作系统</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_systems" name="edit_systems" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">应用类型</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_apptype" name="edit_apptype" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">数据库</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_datas" name="edit_datas" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">资产编号</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_numbers" name="edit_numbers" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">品牌型号</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_brand" name="edit_brand" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">序列号</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_sn" name="edit_sn" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">服务在保</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_service" name="edit_service" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">购入时间</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_dates" name="edit_dates" class="layui-input" readonly>
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">CPU规格</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_cpu" name="edit_cpu" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">CPU数量</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_amount" name="edit_amount" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">CPU总核数</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_core" name="edit_core" class="layui-input" readonly>
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">内存大小</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_ram" name="edit_ram" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">硬盘规格</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_disk" name="edit_disk" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">硬盘容量</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_capacity" name="edit_capacity" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">已用槽数</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_used" name="edit_used" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">剩余槽数</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_remain" name="edit_remain" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">资产归属单位</label>
                    <div class="layui-input-inline">
                        <input type="text" id="edit_department" name="edit_department" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input type="text" name="edit_remark" id="edit_remark" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item" id="edit_check">
                    <div class="layui-input-block">
                        <button class="layui-btn  layui-btn-submit " lay-submit="" lay-filter="editUser" style="margin-left: 200px;">保存</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--添加信息-->
    <div class="layui-row" id="addForm" style="display: none;padding-left: 50px;">
        <div class="layui-col-md10">
            <form class="layui-form layui-form-pane" id="addUser" style="margin-top: 20px;"
                  enctype="multipart/form-data">
                <div class="layui-form-item" style="display: none">
                    <label class="layui-form-label">id</label>
                    <div class="layui-input-block">
                        <input type="text" name="add_id" id="add_id" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">IP地址</label>
                    <div class="layui-input-inline">
                        <input type="text" name="add_ip" id="add_ip" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">应用系统</label>
                    <div class="layui-input-inline">
                        <input type="text" name="add_app" id="add_app" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">责任人</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_admin" name="add_admin" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">机柜</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_cabinet" name="add_cabinet" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">机架位置</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_positions" name="add_positions" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">设备类型</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_types" name="add_types" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">设备状态</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_stat" name="add_stat" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">操作系统</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_systems" name="add_systems" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">应用类型</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_apptype" name="add_apptype" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">数据库</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_datas" name="add_datas" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">资产编号</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_numbers" name="add_numbers" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">品牌型号</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_brand" name="add_brand" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">序列号</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_sn" name="add_sn" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">服务在保</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_service" name="add_service" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">购入时间</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_dates" name="add_dates" class="layui-input" readonly>
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">CPU规格</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_cpu" name="add_cpu" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">CPU数量</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_amount" name="add_amount" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">CPU总核数</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_core" name="add_core" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">内存大小</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_ram" name="add_ram" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">硬盘规格</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_disk" name="add_disk" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">硬盘容量</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_capacity" name="add_capacity" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">已用槽数</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_used" name="add_used" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">剩余槽数</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_remain" name="add_remain" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">资产归属单位</label>
                    <div class="layui-input-inline">
                        <input type="text" id="add_department" name="add_department" class="layui-input">
                    </div>
                </div><br>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input type="text" name="add_remark" id="add_remark" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn  layui-btn-submit " lay-submit="" lay-filter="addUser" style="margin-left: 200px;">保存</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--    新增/删除按钮-->
    <script type="text/html" id="toolbarDemo">
        <div class="layui-btn-container">
            <button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="add"><i class="layui-icon">&#xe608;</i>新增</button>
            <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="delete"><i class="layui-icon">&#xe640;</i>删除
            </button>
        </div>
    </script>
    <!--    编辑按钮-->
    <script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-sm" lay-event="edit"><i class="layui-icon">&#xe642;</i>编辑</a>
    </script>
    <!-- 底部固定区域 -->
    <div class="layui-footer">
        © JAC
    </div>
</div>
<script src="../js/jquery.min.js"></script>
<script src="../layui/layui.all.js"></script>
<script src="../js/headquarters.js"></script>
<script></script>
</body>
</html>
